
import numpy as np
# 堆叠数组
a = np.array([1,2])
b = np.array([3,4])
c = np.array([5,6])

print("垂直堆叠:\n", np.vstack((a, b,c)))
print("水平堆叠:\n", np.hstack((a, b,c)))